package com.zoespeer.food_delivery_comment_api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zoespeer.food_delivery_comment_api.entity.Restaurant;
import com.zoespeer.food_delivery_comment_api.vo.CanteenDetailRequestVO;
import com.zoespeer.food_delivery_comment_api.vo.CanteenDetailVO;
import com.zoespeer.food_delivery_comment_api.vo.RestaurantListRequestVO;
import com.zoespeer.food_delivery_comment_api.vo.RestaurantVO;
import org.apache.ibatis.annotations.Param;

public interface RestaurantMapper extends BaseMapper<Restaurant> {
    // 分页查询餐厅列表（带条件）
    IPage<RestaurantVO> getRestaurantList(
            Page<RestaurantVO> page,
            @Param("request") RestaurantListRequestVO request
    );
    // 获取餐厅详情（含评论列表）
    CanteenDetailVO getCanteenDetail(@Param("request") CanteenDetailRequestVO request);

}